package com.cdtye.shuoh.controller.product;

import com.cdtye.common.webcore.web.AjaxJson;
import com.cdtye.shuoh.domain.product.vo.ProductServicesVo;
import com.cdtye.shuoh.service.product.ProductServicesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 产品服务Controller
 * @author ZhongWang Wang
 * @date 2022-12-21
 */

@RestController
@RequestMapping("/productServices")
public class ProductServicesController {
    @Autowired
    private ProductServicesService productServicesService;

    /**
     * 分页查询
     * @param vo
     * @return
     */
    @PostMapping("/pageList")
    public AjaxJson pageList(@RequestBody ProductServicesVo vo){
        return AjaxJson.success(productServicesService.pageList(vo));
    }

    /**
     * 列表获取
     * @param vo
     * @return
     */
    @PostMapping("/list")
    public AjaxJson list(@RequestBody ProductServicesVo vo){
        return AjaxJson.success(productServicesService.list(vo));
    }
}
